lib/deploy: Throw an error if trying to stage when not ostree-booted
authorColin Walters <walters@verbum.org>
Tue, 1 May 2018 20:36:03 +0000 (16:36 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 2 May 2018 13:27:01 +0000 (13:27 +0000)
commit25ba8db987094b141647b2d2e721095b61fac5c1
tree9103f5a7d744721cd8770b7ec52f49c2043ce982
parentf5f8e2c540ebfd89d34bda362d40af216ce6ba06
lib/deploy: Throw an error if trying to stage when not ostree-booted

There's no reason to do this.  I didn't actually hit this problem,
but it's a corner case that just occurred to me while working on
the code.

I think callers should be adapted to skip trying to use staging
if there's no booted deployment.

Closes: #1568
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c
tests/admin-test.sh